<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/7/1
 * Time: 16:42
 */

namespace app\api\controller;
use app\api\model\Member as MemberModel;


class TestingVipOver extends Common
{
    function tseting(){
        $vipUserData = MemberModel::where(['is_vip'=> 1])->whereTime('expires_time', '<=', time())->column('uid');
        MemberModel::where('uid','in',$vipUserData)->update(['is_vip'=> 0]);
        
    }
}